Skip to content

docs(provider): document custom registry format - #2864

Open
LouisDM wants to merge 2 commits into
MoonshotAI:mainfrom
LouisDM:codex/issue-1366-custom-registry-docs
Open

docs(provider): document custom registry format#2864
LouisDM wants to merge 2 commits into
MoonshotAI:mainfrom
LouisDM:codex/issue-1366-custom-registry-docs

Conversation

@LouisDM

@LouisDM LouisDM commented Aug 12, 2026

Copy link
Copy Markdown

Related Issue

Refs #1366

Problem

The provider documentation explains how to import a custom registry, but it does not document the api.json shape, required fields, capability metadata, or refresh behavior. Users therefore have to infer the format from implementation details.

What changed

  • add a minimal, neutral custom-registry example in both English and Chinese
  • document provider and model fields, supported provider protocols, and capability mapping
  • document same-URL refresh behavior, including additions, removals, metadata updates, and preservation boundaries
  • link the existing custom-registry entry point to the new section

This is intentionally limited to the documentation request. It does not add the longer-term /models discovery/import idea mentioned in the issue.

Verification

  • pnpm -C docs run build
  • git diff --check

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • Documentation-only change; verified with a full VitePress build.
  • Ran gen-changesets; this documentation-only PR needs no changeset.
  • Ran gen-docs and verified the generated documentation build.

@changeset-bot

changeset-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 13716a2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@LouisDM
LouisDM marked this pull request as ready for review August 13, 2026 10:09

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 13bef008ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/en/configuration/providers.md Outdated
kimi provider add https://registry.example.com/api.json --api-key YOUR_API_KEY
```

The key is sent to the registry as `Authorization: Bearer YOUR_API_KEY` and is also saved as the API key for every provider imported from the file. The top-level `example` key identifies the registry record, while the nested `id` becomes the provider ID. Likewise, the model object key creates the Kimi Code alias `example/example-model`, and the nested model `id` is sent to the upstream API.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Define “model alias” at first use

The new section calls example/example-model an alias without explaining that this is the model name users select or reference, yet later field and refresh descriptions rely on “alias” and “namespace” to explain important behavior. Add a short parenthetical gloss at this first occurrence so non-technical readers can understand those rules without prior configuration knowledge.

AGENTS.md reference: docs/AGENTS.md:L44-L46

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 13716a2c3: the first use now defines a model alias as the model name users select or reference in Kimi Code, with the same explanation mirrored in Chinese. Verified with git diff --check and pnpm -C docs run build; independent read-only review found no blockers. Leaving the thread unresolved for maintainer verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant